package jee.boot.oauth.config.password;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * 密码配置
 * 
 * @author zhilei.wang
 *
 */
@Configuration
public class PasswordConfig {
	@Bean
	public BCryptPasswordEncoder  passwordEncoder() {
		return new BCryptPasswordEncoder();
	}
	public static void main(String[] args) {
		System.out.println(new BCryptPasswordEncoder().encode("system"));
	}
}
